package org.leiyang.common.dtos;

import io.netty.channel.Channel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 客户端已连接的server信息
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ConnectedMsgServerInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 服务器信息
     */
    private MsgServerInfo msgServerInfo;

    /**
     * 使用的channel
     */
    private Channel channel;

    /**
     * channel的ID号，用于存储到Redis里
     */
    private String channelId;
}